﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace OpenBlock.Item.Items
{
    public class Item : IItem
    {
        public string Name { get; private set; }
        public int MaxStackSize { get; private set; }

        private Sprite icon;
        public Item(string name, Sprite icon, int maxStackSize = 64)
        {
            Name = name;
            this.icon = icon;
            MaxStackSize = maxStackSize;
        }

        public Sprite GetIcon(ItemState state)
        {
            return icon;
        }
    }
}
